%module skycalc 
%include "typemaps.i"

%{
struct date_time {
    short y;
    short mo;
    short d;
    short h;
    short mn;
    float s;
};

struct almanac {
    double moonIllumination;
    double moonrise;
    double moonset;
    double sunrise;
    double sunset;
    double eveningTwilight;
    double morningTwilight;
    double siderealTimeAtMidnight;
};

%}

struct date_time {
    short y;
    short mo;
    short d;
    short h;
    short mn;
    float s;
};

struct almanac {
    double moonIllumination;
    double moonrise;
    double moonset;
    double sunrise;
    double sunset;
    double eveningTwilight;
    double morningTwilight;
    double siderealTimeAtMidnight;
};
